var db = require('../config/mongo_database');
var logger = require('../config/log4js').logger('access');


// 新增日志
exports.addLog = function(userid, content, detail) {
	var log= new db.logModel();
	log.userid    = userid 
	log.content   = content
	log.detail    = detail
     
    log.save(function(err) {
    	if(err)
    		logger.error('log.save', userid, content, detail)
	});
};
